<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><!DOCTYPE html>
<html class="ui-mobile">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href=".">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>随州房产超市-湖北达人文化传媒</title>
<link rel="stylesheet" href="tpl/static_index/css/jquery.mobile-1.3.0.min.css">
<link rel="stylesheet" href="tpl/static_index/css/common.css">
<link rel="stylesheet" href="tpl/static_index/css/idangerous.swiper.css">
<link rel="stylesheet" href="tpl/static_index/css/propertyList.css" type="text/css">
<link rel="stylesheet" href="tpl/static_index/css/cssReset.css">
<script type="text/javascript" src="tpl/static_index/resource/js/jquery.js"></script>
<script type="text/javascript" src="tpl/static_index/resource/js/sea.js"></script>
<script type="text/javascript" src="tpl/static_index/resource/js/draggabilly.pkgd.min.js"></script>
<script type="text/javascript" src="tpl/static_index/resource/js/router.js"></script>
<script type="text/javascript">
	seajs.use("propertyList");
</script>
</head>

	<body class="ui-mobile-viewport ui-overlay-c" style="display: block;">
		<div id="share_house_page" class="container ui-page ui-body-c ui-page-active" data-role="page" data-dom-cache="true" data-url="share_house_page" tabindex="0" style="min-height: 736px;">
			
			<!--<div class="draggable" style="position: relative;">
				<a href="javascript:void(0)" class="ui-link"><img src="tpl/static_index/images2/d1fe488a-62e5-403c-8c4b-4da395627731.png"></a>
			</div>-->
			
			<div data-role="content" class="contentClass ui-content" id="share_house_content" role="main" style="overflow: hidden; left: 0px;">
				<div id="scrollWrap" style="transition-property: transform; transform-origin: 0px 0px 0px; transition-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); transform: translate(0px, 0px);">
					<!--<div class="UppageTitle">
						<span class="titleLeft_trilateral" id="backLink"></span>
					</div>-->

					<div class="tabBanner" id="tabBanner">
						<!--新加搜索和消息图标-->
						<div class="swiper-container" id="swiper-container-top">
							<div class="swiper-wrapper" style="width: 2070px; height: 171.078px; transform: translate3d(-414px, 0px, 0px); transition-duration: 0s;">
								<div class="swiper-slide">
									<img title="" src="/tpl/static_index/images2/my1.jpg" style="max-width: 414px;">
								</div>
								<div class="swiper-slide" style="width: 414px; height: 171.078px;">
									<img src="/tpl/static_index/images2/2.jpg" title="经纪人" style="max-width: 414px;">
								</div>
							</div>
						</div>
						<div class="pagination" id="pagination-top">
						</div>
					</div>
					<!-- 中间的菜单结束 -->
					<div class="main-ad" id="notice">
						<span class="icon_contain">
							<i style="background: url(/tpl/static_index/images2/eb59b670-79a1-4db3-9265-eac92426943b.jpg) -3% 42% / 5.5rem no-repeat;"></i>
						</span>

						<div id="scrolllayer" style="overflow: hidden;">
							<div id="scrollmessage">
								<ul>
								<l>于女士推荐成交2组,获佣金6000元!</li>
								<li>袁女士推荐成交1组,获佣金2000元!</li>
								<li>陈女士推荐成交1组,获佣金3000元!</li>
								<li>雷女士推荐成交1组,获佣金3000元!</li>
								<li>马女士推荐成交1组,获佣金3000元!</li>
								<li>黄先生推荐成交1组,获佣金3000元!</li>
								</ul>
							</div>
						</div>

					</div>
					
					
					<div class="menu-bar clearFix">
						<div class="choosedropdown">
							<div class="centerdiv">
									<a href="<?php if($_SESSION['user_id']){?><?php echo site_url('recommend');?><?php }else{ ?><?php echo site_url('login');?>&rf=recommend<?php } ?>" target="_self">
										<div class="chooseclassleft" style="width: 33.33%;color:black;">
											<img src="tpl/static_index/images2/Recommend.png">我要推荐
										</div>
									</a>
									<a href="<?php if($_SESSION['user_id']){?><?php echo site_url('customer');?><?php }else{ ?><?php echo site_url('login');?>&rf=customer<?php } ?>" target="_self">
										<div class="chooseclassleft isborder" style="width: 33.33%;color:black;">
												<img src="tpl/static_index/images2/Switch.png">我的客户
										</div>
									</a>
									<a href="<?php if($_SESSION['user_id']){?><?php echo site_url('commission');?><?php }else{ ?><?php echo site_url('login');?>&rf=commission<?php } ?>" target="_self">
										<div class="chooseclassright" style="display: inline-block; width: 33.33%;color:black;">
												<img src="tpl/static_index/images2/money.png">我的佣金
										</div>
									</a>
							</div>
						</div>
					</div>
					
					
					<!-- 中间的菜单开始 -->
					<!--
					<div class="menu-bar clearFix">
						<div class="choosedropdown">
							<div class="centerdiv">
								<div class="chooseclassleft" onclick="productList.setrenzheng(&#39;yongjin&#39;)" style="width: 33.33%;">
									<img src="tpl/static_index/images2/Recommend.png">我要推荐
								</div>
								<div class="chooseclassleft isborder" onclick="productList.getCityLink(&#39;jifen&#39;)" style="width: 33.33%;">
									<img src="tpl/static_index/images2/Switch.png">切换省市
								</div>
								<div class="chooseclassright" style="display: inline-block; width: 33.33%;">
									<img id="coupon" class="coupon" src="tpl/static_index/images2/coupon.png">
								</div>
							</div>
						</div>
					</div>
					-->
<style>
.topright {
    font-size: 14px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 1em;
    width: 70px;
    height: 18px;
    padding-bottom: 2px;
    padding-top: 2px;
    border: 1px solid #CE000A;
    position: relative;
	text-align:center;
	background:red;
	color:white;
	font-family:songti;
}
</style>
					<div id="contentdiv" style="position: relative;">
					
						<a href="<?php echo site_url('msg','id=2');?>" target="_self" style="position: absolute;right: 1.2rem; top:0.3rem">
							<div class="topright"><span class="floorSpan">推荐规则</span></div>
						</a>

						<div class="selecthousesdiv" style="width:auto;">
							<img src="tpl/static_index/images2/icon5@2x.png"><a href="/" target="_self"><span style="color:black;">热销</span> </a>
							<a href="/?lptype=1" target="_self"><span style="left:6rem;color:black;<?php if($_GET["lptype"]==1){echo "font-weight:600";} ?>">住宅</span></a>
							<a href="/?lptype=2" target="_self"><span style="left:10rem;color:black;<?php if($_GET["lptype"]==2){echo "font-weight:600";} ?>">商铺</span></a>
							<a href="/?lptype=3" target="_self"><span style="left:14rem;color:black;<?php if($_GET["lptype"]==3){echo "font-weight:600";} ?>">公寓</span></a>
						</div>
						<div id="content">
							
							


<?php $item = phpok_m_list("projects",100,1);?>
<?php $_i=0;$item[rslist]=(is_array($item[rslist]))?$item[rslist]:array();foreach($item[rslist] AS  $key=>$value){$_i++; ?>

<?php
	$str = $_GET['lptype'];
	if(!empty($str)){
		$lptype = explode(",",$value["lptype"]);
		if(!in_array($str,$lptype)){
			continue;
		}
	}
?>						
							<div class="divDataList">
								<div class="divPositionone">
									<div class="imgdivone" style="z-index:55;">
									<a href="<?php if($value[link_url]){?><?php echo $value[link_url];?><?php }else{ ?><?php echo msg_url($value);?><?php } ?>" target="_self">
										<img src="<?php echo $value[picture];?>" class="divPositionImgone">
									</a>
									</div>
									<div class="divIntroduceInformationone"><span class="informationNameSpan"><?php echo $value[title];?></span></div>
									<div class="divIntroduceDetailone"><span><?php echo $value[subtitle];?></span></div>
									<div class="divIntroduceDetailone"><span style='color:red;'>佣金：<?php echo $value[yongjin];?></span></div>
									<div class="divFloorIntroduceone">
										<a href="<?php if($value[link_url]){?><?php echo $value[link_url];?><?php }else{ ?><?php echo msg_url($value);?><?php } ?>" target="_self">
											<div class="floorDiv" style="width:auto">
												<span class="floorSpan">查看详情</span>
											</div>
										</a>
										<a href="<?php if($_SESSION['user_id']){?><?php echo site_url('recommend');?>&lpid=<?php echo $value[id];?><?php }else{ ?><?php echo site_url('register');?><?php } ?>" target="_self">
											<div class="floorDiv" style="width:auto;background:red;color:white;margin-left:20px;">
												<span class="floorSpan">+立即推荐</span>
											</div>
										</a>
									</div>
								</div>
							</div>
<?php } ?> 
<?php unset($item);?>    							
							
						</div>
						<!--20160603修改-->
						
						<!--20160603修改end-->
					</div>
					<div id="pullUp" style="display: block; text-align: center;display:none">
						<span class="pullUpIcon"></span><span class="pullUpLabel">上拉加载更多...</span>
					</div>
					<div style="height: 100px; width: 100%;"></div>
				</div>

			</div>
			<div id="loginTipToSign" class="popup-login">
				<div class="couponContent">
					<img src="tpl/static_index/images2/loginTip.png" alt="">
					<span class="click_close"></span>
					<span class="gotoLogin"></span>
				</div>
			</div>

			<div id="footer-ment">
				<div class="wechat_menu" id="wechat_menu">
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="house_btn" href="/" target="_self"><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/icon01At@2x.png"><span class="red">楼盘</span></span></span></a>
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="mid_btn" target="_self" href="<?php if($_SESSION['user_id']){?><?php echo site_url('recommend');?><?php }else{ ?><?php echo site_url('register');?><?php } ?>" ><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/ico03@2x.png">推荐</span></span></a>
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="my_btn" target="_self" href="<?php if($_SESSION['user_id']){?><?php echo site_url('home');?>&f=my<?php }else{ ?><?php echo site_url('login');?><?php } ?>"  ><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/icon04@2x.png">我的</span></span></a>
				</div>
			</div>
		<!--回到顶部功能-->
		<a id="backTop" href="#" style="display: none;">
			<img src="tpl/static_index/images2/top@2x.png">
		</a>
	
	<script type="text/javascript">
		$('.draggable').draggabilly({
			containment: true
		});
		
		function wclose(){
			$('.mask-tips').remove();
		}
		$('.mask-tips .mask-close').on('click', function() {
			$('.mask-tips').remove();
		});
	</script>
	
	<?php if(empty($_SESSION['user_id'])){?>
		<?php if($_COOKIE['islook']!=1){?>
				<div class="mask-tips">
					<div class="mask-content">
						<a href="javascript:wclose();"><div class="mask-close"></div></a><img src="tpl/static_index/images2/8360cf5b-0ef3-4664-be78-210dbf123f92.png">
						<a href="<?php echo site_url('register');?>" target="_self"><div class="go-coupon"></div></a>
						<div></div>
					</div>
				</div>
		<?php } ?>
	<?php } ?>
	
	<div class="ui-loader ui-corner-all ui-body-c ui-loader-verbose">
		<span class="ui-icon ui-icon-loading"></span>
		<h1>正在加载...</h1>
	</div>
	
</body>
<?php
	include(LIBS.'/WeixinJs/WeixinJs.class.php');  
	$weixinJs = new \WeixinJs("wxa9adc2cde1638e75","ac5418ff04ffcc3e0bb05c38bff32821");
	$signPackage = $weixinJs->GetSignPackage();
	$appId = $signPackage['appId'];
	$timestamp = $signPackage['timestamp'];
	$nonceStr = $signPackage['nonceStr'];
	$signature = $signPackage['signature'];

	$signPackage['sharetitle'] = $_sys['wx_title'];
	$signPackage['slink'] = $_sys['wx_link'];
	$signPackage['sharedesc'] = $_sys['wx_description'];
	$signPackage['sharepic'] = $_sys['siteurl'].$_sys['wx_logo'];

?>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
	// 注意：所有的JS接口只能在公众号绑定的域名下调用，公众号开发者需要先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。 
	// 如果发现在 Android 不能分享自定义内容，请到官网下载最新的包覆盖安装，Android 自定义分享接口需升级至 6.0.2.58 版本及以上。
	// 完整 JS-SDK 文档地址：http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
	wx.config({
		debug: false,
		appId: '<?php echo $signPackage['appId'];?>',
		timestamp: <?php echo $signPackage['timestamp'];?>,
		nonceStr: '<?php echo $signPackage['nonceStr'];?>',
		signature: '<?php echo $signPackage['signature'];?>',
		jsApiList: [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage'
		]
	});
	
	wx.ready(function () {
		// 在这里调用 API
		//监听“分享到朋友圈”按钮点击
		//desc:"<?php echo $signPackage['sharedesc'];?>",
		wx.onMenuShareTimeline({
			title: "<?php echo $signPackage['sharetitle'];?>",
			link:"<?php echo $signPackage['slink'];?>",
			imgUrl: "<?php echo $signPackage['sharepic'];?>",
			trigger: function (res) {
				// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
				1;
			},
			success: function (res) {
				var pars = "";
				var parsprams = "";
				var randomcode = Math.random() * 100000;
				parsprams = pars + "&code=" + randomcode + "&f=updategroup";
				$.ajax({
					url: 'index.php?c=home',
					type: "Get",
					data: parsprams,
					beforeSend: function () { },
					success: function (state) {
						alert(state);
					}
				});		
			},
			cancel: function (res) {
				alert("您取消了分享！");
			}
		});
		//监听“发送给朋友”按钮点击
		wx.onMenuShareAppMessage({
			title: "<?php echo $signPackage['sharetitle'];?>",
			link:"<?php echo $signPackage['slink'];?>",
			desc:"<?php echo $signPackage['sharedesc'];?>",
			imgUrl: "<?php echo $signPackage['sharepic'];?>",
			trigger: function (res) {
				// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
				1;
			},
			success: function (res) {
				var pars = "";
				var parsprams = "";
				var randomcode = Math.random() * 100000;
				parsprams = pars + "&code=" + randomcode + "&f=updategroup";
				$.ajax({
					url: 'index.php?c=home',
					type: "Get",
					data: parsprams,
					beforeSend: function () { },
					success: function (state) {
						alert(state);
						window.reload();
					}
				});		
			},
			cancel: function (res) {
				alert("您取消了分享！");
			}
		});
	});
</script>
</html>



</body>
</html>